package cn.kgc.service.impl;

import cn.kgc.mapper.CompanyMapper;
import cn.kgc.pojo.Auditstate;
import cn.kgc.pojo.Company;
import cn.kgc.service.CompanyService;
import cn.kgc.util.Page;
import com.alibaba.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {
    @Resource
    private CompanyMapper companyMapper;

    public Company findById(Serializable id) {
        return null;
    }

    public List<Company> findAll() {
        return null;
    }

    /**
     * 保存公司信息
     * @param company
     * @return
     */
    public int save(Company company) {
        return companyMapper.save(company);
    }

    public List<Auditstate> selectAllAuditstate() {
        return null;
    }

    public int delete(Serializable id) {
        return 0;
    }

    public int update(Integer companyId, Integer auditState) {
        return 0;
    }

    public String seleceEmail(Integer companyId) {
        return null;
    }

    public Page queryByPage(String companyName, Integer index, Integer size) {
        return null;
    }

    public int getCount(String companyName) {
        return 0;
    }

    public int update(Company company) {
        return 0;
    }

    public List<Company> query(Object params) {
        return null;
    }

    public Page queryByPage(Object params, Page page) {
        return null;
    }
}
